<template>
  <div class="container">
    <div class="name">{{ course.name }}</div>
    <div class="icon-cell">
      <img src="../../../../assets/img/icon-user.png" alt="">
      <p>
        <span class="label">教师姓名</span>
        <span>{{ course.teacher }}</span>
      </p>
    </div>
    <div class="icon-cell">
      <img src="../../../../assets/img/icon-user.png" alt="">
      <p>
        <span class="label">上课时间</span>
        <span>{{ course.time }}</span>
      </p>
    </div>
    <div class="btn">
      <van-button type="info" size="large" to="/assessView">分享报告</van-button>
      <van-button type="info" size="large" to="/poster">分享海报</van-button>
      <van-button type="danger" size="large" to="/leave">请假</van-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'course-view',
  data () {
    return {
      course: {
        name: '古筝课',
        teacher: '王月亮',
        time: '2019-09-16 9:00-10:00(am)'
      }
    }
  },
  methods: {},
  created () {
  }
}
</script>

<style scoped>
  .name{
    font-size: 20px;
    line-height: 40px;
  }
  .icon-cell{
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    align-items: center;
  }
  .icon-cell img{
    flex-shrink: 0;
    flex-grow: 0;
    margin-right: 6px;
  }
  .container{
    padding: 10px;
  }
  .icon-cell .label{
    color: #909399;
  }
  .btn{
    margin-top: 60px;
  }
  .btn .van-button{
    margin-top: 16px;
  }
</style>
